package com.ruoyi.purchase.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收料通知单对象 material_receive
 * 
 * @author ruoyi
 * @date 2025-10-29
 */
public class MaterialReceive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收料通知单ID */
    private Long id;

    /** 收料通知单号 */
    @Excel(name = "收料通知单号")
    private String receiveId;

    /** 采购订单号 */
    @Excel(name = "采购订单号")
    private String poId;

    /** 送货单号 */
    @Excel(name = "送货单号")
    private String deliveryId;

    /** 收料日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收料日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiveDate;

    /** 收料人 */
    @Excel(name = "收料人")
    private String receiver;

    /** 总箱数 */
    @Excel(name = "总箱数")
    private Long totalBoxes;

    /** 总数量 */
    @Excel(name = "总数量")
    private Long totalQuantity;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdPerson;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** $table.subTable.functionName信息 */
    private List<MaterialReceiveDetail> materialReceiveDetailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setReceiveId(String receiveId) 
    {
        this.receiveId = receiveId;
    }

    public String getReceiveId() 
    {
        return receiveId;
    }

    public void setPoId(String poId) 
    {
        this.poId = poId;
    }

    public String getPoId() 
    {
        return poId;
    }

    public void setDeliveryId(String deliveryId) 
    {
        this.deliveryId = deliveryId;
    }

    public String getDeliveryId() 
    {
        return deliveryId;
    }

    public void setReceiveDate(Date receiveDate) 
    {
        this.receiveDate = receiveDate;
    }

    public Date getReceiveDate() 
    {
        return receiveDate;
    }

    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }

    public void setTotalBoxes(Long totalBoxes) 
    {
        this.totalBoxes = totalBoxes;
    }

    public Long getTotalBoxes() 
    {
        return totalBoxes;
    }

    public void setTotalQuantity(Long totalQuantity) 
    {
        this.totalQuantity = totalQuantity;
    }

    public Long getTotalQuantity() 
    {
        return totalQuantity;
    }

    public void setCreatedPerson(String createdPerson) 
    {
        this.createdPerson = createdPerson;
    }

    public String getCreatedPerson() 
    {
        return createdPerson;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public List<MaterialReceiveDetail> getMaterialReceiveDetailList()
    {
        return materialReceiveDetailList;
    }

    public void setMaterialReceiveDetailList(List<MaterialReceiveDetail> materialReceiveDetailList)
    {
        this.materialReceiveDetailList = materialReceiveDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("receiveId", getReceiveId())
            .append("poId", getPoId())
            .append("deliveryId", getDeliveryId())
            .append("receiveDate", getReceiveDate())
            .append("receiver", getReceiver())
            .append("totalBoxes", getTotalBoxes())
            .append("totalQuantity", getTotalQuantity())
            .append("remark", getRemark())
            .append("createdPerson", getCreatedPerson())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("materialReceiveDetailList", getMaterialReceiveDetailList())
            .toString();
    }
}
